﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Blog.DataAccess;

namespace Blog.Entity
{
    public class LogOn
    {
        DataConnection dataConnection=new DataConnection();
        public string UserName { get; set; }
        public string Password { get; set; }
        public string Message { get; set; }
        public bool IsAdmin { get; set; }
        public bool IsLoged { get; set; }

        public LogOn()
        {}

        public LogOn(string user,string pass)
        {
            UserName = user;
            Password = pass;
            dataConnection.LogOnUser();
        }
    }
}
